home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 121
/
FreelogMagazineJuilletAout2014-No121.iso
/
Outils
/
Adobe-Air
/
adobe-air_13.exe
/
[0]
/
setup.swf
/
scripts
/
mx
/
accessibility
/
PanelAccImpl.as
< prev
next >
Wrap
Text File
|
2014-03-27
|
3KB
|
118 lines
package mx.accessibility
{
import mx.containers.Panel;
import mx.core.UIComponent;
import mx.core.mx_internal;
use namespace mx_internal;
public class PanelAccImpl extends AccImpl
{
private static const ROLE_SYSTEM_TITLEBAR:uint = 1;
private static const ROLE_SYSTEM_DIALOG:uint = 18;
private static var accessibilityHooked:Boolean = hookAccessibility();
private static const STATE_SYSTEM_FOCUSED:uint = 4;
mx_internal static const VERSION:String = "3.0.0.0";
public function PanelAccImpl(param1:UIComponent)
{
super(param1);
role = 9;
}
private static function hookAccessibility() : Boolean
{
Panel.createAccessibilityImplementation = mx_internal::createAccessibilityImplementation;
return true;
}
public static function enableAccessibility() : void
{
}
mx_internal static function createAccessibilityImplementation(param1:UIComponent) : void
{
Panel(param1).getTitleBar().accessibilityImplementation = new PanelAccImpl(param1);
}
override public function getChildIDArray() : Array
{
var _loc1_:Array = [];
var _loc2_:int = 0;
while(_loc2_ < 2)
{
_loc1_[_loc2_] = _loc2_ + 1;
_loc2_++;
}
return _loc1_;
}
override public function get_accState(param1:uint) : uint
{
var _loc2_:uint = getState(param1);
switch(param1)
{
case 1:
break;
case 2:
_loc2_ |= STATE_SYSTEM_FOCUSED;
}
return _loc2_;
}
override protected function getName(param1:uint) : String
{
var _loc2_:String = Panel(master).title;
switch(param1)
{
case 1:
_loc2_ = "";
break;
case 2:
_loc2_ = "";
break;
default:
_loc2_ = Panel(master).title + " " + Panel(master).className;
}
return _loc2_;
}
override public function accLocation(param1:uint) : *
{
var _loc2_:Object = master;
switch(param1)
{
case 1:
_loc2_ = Panel(master).getTitleBar();
break;
case 2:
_loc2_ = Panel(master).contentPane;
}
return _loc2_;
}
override public function get_accRole(param1:uint) : uint
{
var _loc2_:uint = role;
switch(param1)
{
case 1:
_loc2_ = ROLE_SYSTEM_TITLEBAR;
break;
case 2:
_loc2_ = ROLE_SYSTEM_DIALOG;
break;
default:
_loc2_ = role;
}
return _loc2_;
}
}
}